﻿@model KPIS.GERP.Models.ICM.DeliveryNote
@using KPIS.GERP.Models.ICM

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "Create") { @Html.HiddenFor(model => model.PoId) }
@if(ViewContext.RouteData.Values["action"].ToString().ToLower()=="edit"){ @Html.HiddenFor(model => model.DnId) }

<div class="widget-box span9">        
    <div class="widget-header">
        <h4 class="smaller">ข้อมูลกหลัก</h4>
    </div>
    
    <div class="widget-body">
        <div class="widget-main">
                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.DeliveryDate)
                        
                    </div>
                    <div class="controls">
                       @Html.EditorFor(model => model.DeliveryDate)    
                      
                    </div>
                </div>
                
                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.Name)
                    </div>
                    <div class="controls"> 
                        @Html.EditorFor(model=> model.Name)               
                       
                </div>
                    </div>

                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.ReceiveDate)
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.ReceiveDate)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.InvoiceDate)
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.InvoiceDate)
                    </div>
                </div>
            
               

                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.InvoiceNumber)
                    </div>
                    <div class="controls">
                      @Html.EditorFor(model=>model.InvoiceNumber)
                    </div>
                </div>
                
                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.DocumentNumber)
                    </div>
                    <div class="controls">
                       @Html.EditorFor(model => model.DocumentNumber)     
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        @Html.LabelFor(model => model.DeliveryPlace)
                    </div>
                    <div class="controls">
                     @Html.EditorFor(model=>model.DeliveryPlace)
                    </div>
                </div>
                     <div class="control-group">
                    <div class="control-label">
                     รายละเอียด
                    </div>
                    <div class="controls">
                     @Html.EditorFor(model=>model.Descr)
                    </div>
                </div>
        </div>  
    </div>


</div>    


